//
// Created by 吴锐 on 2022/2/23.
//

#include<iostream>

using namespace std;

int* func(){
//    int a = 10;
//    return &a;

    int* p = new int(10);
    return p;

}

int main(){

    int* p = func();
    cout << *p << endl;

    return 0;
}